<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c"%>
<%
	String path = request.getContextPath();
	String pkCl=request.getParameter("pkCl");
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<meta http-equiv="pragma" content="no-cache">
		<meta http-equiv="cache-control" content="no-cache">
		<meta http-equiv="expires" content="0">
		<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
		<meta http-equiv="description" content="This is my page">
		<link href="<%=path%>/css/main.css" rel="stylesheet" type="text/css" />
		<script src="<%=path %>/js/jquery-1.4.4.js" type="text/javascript"></script>
		<script language="javascript" type="text/javascript" src="<%=path%>/calendar/WdatePicker.js"></script>
		<script language="JavaScript" type="text/javascript" src="<%=path%>/js/caltimer.js"></script>
		
		<script type="text/javascript">
		
			var pkCl="<%=request.getParameter("pkCl")%>";
			function initValue(){
				var code=parent.document.getElementById(pkCl+"-code").value;
				document.getElementById("code1").value=code; 
				var name=parent.document.getElementById(pkCl+"-name").value;
				document.getElementById("name1").value=name; 
				//var status=parent.document.getElementById(pkCl+"-status").value;
				//document.getElementById("status1").value=status; 
				//var validdate=parent.document.getElementById(pkCl+"-validdate").value;
				//document.getElementById("validdate1").value=validdate; 
			}
			
			function clickOk(){
				var status=document.getElementById("status1").value; 
				parent.document.getElementById(pkCl+"-status").value=status;
				//var validdate=document.getElementById("validdate1").value; 
				//parent.document.getElementById(pkCl+"-validdate").value=validdate;
				parent.hideMe();
			}
		</script>
	</head>

	<body class="innerpage" onload="initValue()">
		<div class="margin10"></div>
		<form action="<%=path%>/selfinfo/saveproduct" method="POST">
			<table width="320" border="0" class="poptable" cellpadding="0"
				cellspacing="0" align="center">
				<tr>
					<td width="100"  align="right">产品分类编码：</td>
					<td class="innertext">
						<input name="code" id="code1" type="text" class="textinput" readonly="readonly" />
						<span class="needfill">*</span>
					</td>
				</tr>
				<tr>
					<td class="innertext" align="right">产品分类名称：</td>
					<td class="innertext">
						<input name="name" id="name1" type="text" class="textinput" readonly/>
						<span class="needfill">*</span>
					</td>
				</tr>
			</table>
			<div class="cbuttonrow">
				<p align="center">
					<input type="button" id="submit" class="buttonok" value="确定" onclick="clickOk()"/>
					<input type="button" class="buttoncan" value="取消" onclick="parent.hideMe();" />
				</p>
			</div>
		</form>
	</body>
</html>
